﻿Public NotInheritable Class frmAboutBox

    Private Sub frmAboutBox_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' Set the title of the form.
        Dim ApplicationTitle As String
        If My.Application.Info.Title <> "" Then
            ApplicationTitle = My.Application.Info.Title
        Else
            ApplicationTitle = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)
        End If
        Me.Text = String.Format("About {0}", ApplicationTitle)
        ' Initialize all of the text displayed on the About Box.
        ' TODO: Customize the application's assembly information in the "Application" pane of the project 
        '    properties dialog (under the "Project" menu).
        Me.LabelProductName.Text = My.Application.Info.ProductName
        Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Info.Version.ToString)
        Me.LabelCopyright.Text = My.Application.Info.Copyright
        Me.TextBoxDescription.Text = My.Application.Info.Description + ControlChars.CrLf + ControlChars.CrLf + _
            "Gutmann Secure Deletion algorithm belongs to the 'Gutmann Algorithm Secure File Deletion' project by 'xorcrash'" & _
                " on SourceForge (http://sourceforge.net/projects/gutmannmethod/). It was converted from C# to Visual Basic" & _
                " and adapted to this application." + ControlChars.CrLf + ControlChars.CrLf + "Application image belongs to " & _
                "Hand Drawn Web Icon Set made by Pawel Kadysz and distrubuted under Free for commercial use license"
    End Sub

    Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
        Me.Close()
    End Sub

End Class
